import http from '@/utils/http';

/**
 * 助手管理
 */

// 新增分类
export async function postAgentCategoryAdd(body) {
    return http.post('/agent/category/add', body)
}

// 编辑分类
export async function postAgentCategoryEdit(body) {
    return http.post('/agent/category/edit', body)
}

// 查询分类
export async function getAgentCategoryList(params) {
    return http.get('/agent/category/list', params)
}

// 删除分类
export async function getAgentCategoryDel(params) {
    return http.get('/agent/category/delete', params)
}

// 新增agent
export async function postAgentAdd(body) {
    return http.post('/agent/add', body)
}

// 编辑agent
export async function postAgentEdit(body) {
    return http.post('/agent/edit', body)
}

// 查询agent
export async function getAgentList(params) {
    return http.get('/agent/list', params)
}

// 删除agent
export async function getAgentDel(params) {
    return http.get('/agent/delete', params)
}

// agent详情
export async function getAgentInfo(params) {
    return http.get('/agent/info', params)
}

// agent停启用
export async function postAgentDisabled(data) {
    return http.post('/agent/disabled', data)
}

// 大模型列表
export async function getModelList(params) {
    return http.get('/agent/modelList', params)
}

//应用配置-助手配置
export async function agentShareList(params) {
  return http.get('/agent/shareList', params)
}

export async function agentShare(params) {
  return http.post('/agent/share', params)
}

export async function postGenerateSettings(params) {
    return http.post('/agent/generateSettings', params)
}